import Mock from 'mockjs'

Mock.mock('/api/getTable1', 'get', {
  'data|10': [
    {
      id: '@guid',
      name: '@cname',
      'status|1': ['primary', 'success', 'info', 'warning'],
      'tagName|1': ['最优', '中诚', '国际', '信唐'],
      buyPrice: '@float(0,10,0,2)',
      riseAndFall: '@float(0,10,0,2)',
      'child|2': [
        {
          name: '@cname',
          age: '@integer(18,55)',
          'sex|1': ['男', '女'],
        },
      ],
    },
  ],
})
